package fr.appliClient.client.widget.utils.widget.errorsmessages;

import com.google.gwt.user.client.ui.DecoratedPopupPanel;

/**
 * Pop up panel for display errors messages.
 * @author renavarr
 *
 */
public class ErrorDecoratedPopupPanel extends DecoratedPopupPanel {
	
	/**
	 * Pop up width.
	 */
	private String width = "500px";
	
	public ErrorDecoratedPopupPanel(boolean autohide, ErrorLabel errorLabel) {
		super(autohide);
		this.setWidth(this.width);
		
		this.addStyleName("css-class-name");
		
		this.setWidget(errorLabel);
		this.setAnimationEnabled(true);
		this.ensureDebugId("popUpErrorMessage");
	}
}
